package com.service.impl;

import com.bean.Admin;
import com.dao.AdminDao;
import com.dao.impl.AdminDaoImpl;
import com.service.AdminService;

public class AdminServiceImpl implements AdminService {
    private AdminDao adminDao=new AdminDaoImpl();

    @Override
    public Admin queryByAdmin(String adminid,String password) {
        return adminDao.queryOne(adminid,password);
    }

    @Override
    public void modifyPass(String adminid,String password) {
        adminDao.modifyPass(adminid,password);
    }
}
